home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / CPP / LINKLIST.ZIP / LINKLIST.TXT < prev    next >
Encoding:
Text File  |  1996-12-02  |  3.8 KB  |  99 lines

  1.  
  2.         Linked-List Library Functions              
  3.  
  4.         By Kevin Campbell - 1/12/96                 
  5.  
  6.  
  7. Introduction
  8. ============
  9.  
  10. The Linked-List library was created so as to give pleasure to programmers worldwide as they play with it till their heart's content. The lack of linked-list functions in C is quite astonishing, everybody needs and loves linked-lists so why didn't they add them? (answers on a postcard please...)
  11.  
  12. Anyway, included is a set of files to be included with your compiler to allow the usage of linked-lists. I have included the actual source code instead of libraries, etc, so that everybody with a C++ compiler may use them.
  13.  
  14. Last Minute Notes
  15. ===============
  16.  
  17. 1: The Linklist.* files are not documented here. They are a templated version of the voidlist library, but are not finished and contain many bugs. Using these files is not recomended.
  18.  
  19. Packing List
  20. ===============
  21.  
  22. The files included in this package are
  23.  
  24.         VoidList.CPP - The C++ code for the linked-list library
  25.  
  26.         VoidList.H - The Header Filfe for the linked-list library
  27.  
  28.         VoidCode.CPP - Some example code on how to use the linked-list library        
  29.  
  30.         LinkList.Txt - This File.
  31.  
  32.  
  33. How to use the Linked-List Library
  34. =================
  35.  
  36. To use the library is fairly simple. All you have to do is #include the linklist.h file and add the linklist.cpp file to your project list (if your compiler has a project list).
  37.  
  38. *Note voidlist.cpp is a C++ file and won't run on C compilers.
  39.  
  40. The linkcode.cpp file has some example source on how to use the library. It's all pretty self-explanitary. One thing to note... When creating/deleting entries, you have to allocate the memory yourself and call new/delete. 
  41.  
  42. This code has been tested under Borland's Turbo C++ 3.0 for DOS. If it doesn't work on your compiler please contact me and I'll try and fix it.
  43.  
  44.  
  45. How Linked-Lists work
  46. =================
  47.  
  48. Basically a Linked-List is a structure which has pointers to other strucutres. You really don't need to know how it works, you've got the linklist library to take care of that for you :)
  49.  
  50. The liked list has a set of structures known as nodes. Each node contains a pointer to other nodes. To move around the list, you simply set the currently used node to the values of the pointers in the node. 
  51.  
  52.  
  53. About this product
  54. =================
  55.  
  56. This product is supplied free of charge, however I would appreciate a credit in any work that this file is used in. If you register for future updates however (see register.txt), you will recieve the latest versions of this library as it is made availible, and much more.
  57.  
  58. If your are distributing this file, or uploading it to a BBS, please use the original, unaltered self-extracting archive the these files came in. Feel free to distribute this as much as you want, just as long as it's not altered in any way.
  59.  
  60.  
  61. How to contact me
  62. =================
  63.  
  64. Please send you money, postcards, error-reports, questions, etc. etc. to me:
  65.  
  66.         E-Mail
  67.         ======
  68.  
  69.         Compuserve: 106053,1120
  70.         Internet: 106053.1120@compuserve.com
  71.  
  72.         Snail-Mail
  73.         =========
  74.  
  75.         Kevin Campbell
  76.         20 Leman Drive
  77.         Houston
  78.         Renfrewshire
  79.         Scotland
  80.  
  81.         PA6 7LN
  82.  
  83.  
  84. Legal Stuff (Just so you can't sue me <g>).
  85. ===========
  86.  
  87. Disclaimer:
  88.  
  89. The author (Kevin Campbell) specifically disclaims all warranties,
  90. expressed or implied, including but not limited to implied warranties of
  91. merchantability and fitness for a particular purpose with respect to defects
  92. in the software and documentation.
  93.  
  94. In no event shall the author be liable for any loss of profit or damage,
  95. including but not limited to special, incidental, or consequential damages.
  96.  
  97. All product names, trademarks and registered trademarks contained in this
  98. document are the property of their respective holders.
  99.